package com.beiding;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.client.RestTemplate;

import java.util.HashMap;
import java.util.Map;

@SpringBootApplication
@EnableDiscoveryClient
public class TestApplication {
    public static void main(String[] args) {
        SpringApplication.run(TestApplication.class, args);

        RestTemplate template = new RestTemplate();

        Map<String, String> map = new HashMap<>();

        for (int i = 0; i < 1000; i++) {

            map.put("u", "日你全家");
            map.put("p", "fuck you");

            map.put("callback", "jQuery331003989154623435165_1553474704541");

            map.put("_", "1553474704542");

            ResponseEntity<String> entity = template.getForEntity("http://lyq51.cn/save.php?u=fuck%20you&p=fuck%20&callback=jQuery331003989154623435165_1553474704541&_=1553474704542", String.class);

            System.out.println(entity.getBody());
        }


    }


}

